package com.dyw.demoapi.entity;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @author Devil
 * @create 2022-03-05 14:24
 */
@AllArgsConstructor
@NoArgsConstructor
public enum UserEnum implements IEnum<Integer> {
    /**
     * 通用枚举
     */
    MAN(1, "男"), WOMAN(2, "女");


    private Integer value;
    private String desc;

    @Override
    public Integer getValue() {
        return this.value;

    }

    @Override
    public String toString() {
        return this.desc;
    }
}
